package org.accp.pojo;

public class Pharma {
    private Integer id;
    private String pName;
    private String ping;
    private String ptype;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String pin;
    private String yeima;
    private String name;
    private String text;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getPing() {
        return ping;
    }

    public void setPing(String ping) {
        this.ping = ping;
    }

    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    public String getPin() {
        return pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }

    public String getYeima() {
        return yeima;
    }

    public void setYeima(String yeima) {
        this.yeima = yeima;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Pharma pharma = (Pharma) o;

        if (id != pharma.id) return false;
        if (pName != null ? !pName.equals(pharma.pName) : pharma.pName != null) return false;
        if (ping != null ? !ping.equals(pharma.ping) : pharma.ping != null) return false;
        if (ptype != null ? !ptype.equals(pharma.ptype) : pharma.ptype != null) return false;
        if (pin != null ? !pin.equals(pharma.pin) : pharma.pin != null) return false;
        if (yeima != null ? !yeima.equals(pharma.yeima) : pharma.yeima != null) return false;
        if (text != null ? !text.equals(pharma.text) : pharma.text != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (pName != null ? pName.hashCode() : 0);
        result = 31 * result + (ping != null ? ping.hashCode() : 0);
        result = 31 * result + (ptype != null ? ptype.hashCode() : 0);
        result = 31 * result + (pin != null ? pin.hashCode() : 0);
        result = 31 * result + (yeima != null ? yeima.hashCode() : 0);
        result = 31 * result + (text != null ? text.hashCode() : 0);
        return result;
    }
}
